package com.lovo.dimao.entity.joe;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@ApiModel(value = "采购申请商品明细",description = "")
@TableName("csc_purchase_detail")
@Data
public class PurchaseDetailBean implements Serializable {
    /**
     * 明细id
     */
    @ApiModelProperty(name = "采购明细id", notes = "")
    @TableId("pk_purchase_d_id")
    private Long purchaseDId;
    /**
     * 采购申请id
     */
    @ApiModelProperty(name = "采购申请id", notes = "")
    @TableField(value = "fk_purchase_id")
    private Long purchaseId;
    /**
     * 商品数量
     */
    @ApiModelProperty(name = "商品数量", notes = "")
    private Integer goodsAmount;
    /**
     * 商品名称
     */
    @ApiModelProperty(name = "商品名称", notes = "")
    private String goodsName;
    /**
     * 商品序列号
     */
    @ApiModelProperty(name = "商品序列号", notes = "")
    private String goodsIndex;

    @TableField(exist = false)
    @ApiModelProperty(name = "指定的采购申请", notes = "")
    private PurchaseBean purchaseBean;
}
